from django.core.mail import send_mail

from utils.smscodes import send_message
from celery_tasks.main import app

# 注意是:task

@app.task(name='send_mail')
def send_mail_task(subject, message,
              EMAIL_FROM,
              email_list,
              html_message):
    send_mail(subject, message,
              EMAIL_FROM,
              email_list,
              html_message=html_message)
